<template>
  <div class="block-site">
    <div class="" v-for="sec in list" :key="sec.id">
      <div class="block-head">{{sec.title}}</div>
      <div class="block animated fade-in" v-for="item in sec.list" :key="item.id">
        <div class="block-body d-row">
          <div :class="'d-col-xs-' + (node.xs || 6) + ' d-col-sm-' + (node.sm || 6)" v-for="node in item.list" :key="node.title">
            <div class="text-container">
              <div v-if="node.title" class="text-title">{{node.title}}</div>
              <div v-if="node.content" class="text-content">{{node.content}}</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
/* 块 */
export default {
  props: {
    list: {
      type: Array,
      default: []
    }
  }
}
</script>

<style lang="scss">
.block-site{
  padding-bottom: 30px;
  .block {
    padding: 40px 10px;
    color: #666;
    &:nth-child(odd) {
      background: #fcfcfc;
      .block-head{
        border-bottom-color: #eee;
      }
    }
    & + .block {
      border-top: 1px dashed #eee;
    }
  }
  .block-head{
    position: relative;
    padding: 20px 0;
    font-size: 34px;
    text-align: center;
    color: #333;
    border-bottom: 1px solid #efefef;
    &::after{
      content: "";
      position:absolute;
      left: 50%;
      bottom: 0;
      margin-left: -90px;
      width: 180px;
      height: 2px;
      background:#3391ff;
    }
  }
  .text-theme-01{
    color: #EC5151;
  }
  .text-theme-02{
    color: #ffa400;
  }
  .text-theme-03{
    color: #96514d;
  }
  .text-theme-04{
    color: #1abd9e;
  }
  .text-theme-05{
    color: #3DBAF7;
  }
  .text-theme-06{
    color: #5D59CD;
  }
  .icon-container{
    padding: 20px 0;
    height: 140px;
    line-height: 100px;
    text-align: center;
    font-size: 80px;
  }
  .text-title{
    overflow: hidden;
    height: 50px;
    line-height: 50px;
    color: #666;
    font-size: 22px;
    text-align: center;
  }
  .text-content {
    overflow: hidden;
    margin: 0 auto;
    max-width: 360px;
    min-height: 81px;
    line-height: 27px;
    color: #999;
    text-align: center;
  }
}
</style>
